<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Slow Admin 中文文档</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="description" content="Description">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
    <link rel="shortcut icon" href="/static/logo.png" type="image/x-icon"/>
    <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
</head>
<body>
<nav>
    <a href="#/docs/">文档</a>
    <a href="#/extensions/">扩展</a>
    <a href="http://admin-demo.slowlyo.top/admin" target="_blank">Demo</a>
</nav>
<div id="app"></div>

<script>
    window.$docsify = {
        name: "Slow Admin",
        repo: "https://gitee.com/slowlyo/slow-admin",
        loadSidebar: true,
        autoHeader: true,
        subMaxLevel: 3,
        auto2top: true,
        coverpage: true,
        basePath: "/slow-admin-doc/",
        alias: {
            "/_sidebar.md": "/docs/_sidebar.md",
        },
        // 全文搜索
        search: {
            placeholder: "搜索一下~",
            noData: "啥也没搜到~",
        },
        // 代码块复制
        copyCode: {
            buttonText: "Copy",
            errorText: "Error",
            successText: "Copied",
        },
        // 分页导航
        pagination: {
            previousText: "上一篇",
            nextText: "下一篇",
        },
        // 字数统计
        count: {
            language: "chinese",
        },
        // Alert
        // NOTE TIP WARNING ATTENTION
        flexibleAlerts: {
            style: "flat",
        },
    }

    const changeAppName = () => {
        let hash = window.location.hash
        let appNameLink = document.querySelector(".app-name-link")

        appNameLink.innerHTML = hash == "#/extensions/" ? "Slow Admin 扩展" : "Slow Admin"
    }

    window.onload = () => changeAppName()
    window.onhashchange = () => changeAppName()
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<!--全文搜索-->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<!--图片缩放-->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<!--代码块复制-->
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
<!--分页导航-->
<script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>
<!--字数统计-->
<script src="//unpkg.com/docsify-count/dist/countable.js"></script>
<!--Alert-->
<script src="https://unpkg.com/docsify-plugin-flexible-alerts"></script>
<!--代码高亮-->
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-php.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<!--侧边栏折叠-->
<!--<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/sidebar.min.css"/>-->
<!--<script src="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/docsify-sidebar-collapse.min.js"></script>-->
</body>
</html>
